package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店售价同步记录对象 store_price_sync
 *
 * @author ruoyi
 * @date 2025-05-24
 */
public class StorePriceSync extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 同步记录唯一标识符(主键) */
    private Long id;

    /** 商品名称(如"iPhone 15 256G 黑色") */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品ID(外键关联商品主表，可选) */
    @Excel(name = "商品ID(外键关联商品主表，可选)")
    private Long productId;

    /** 门店名称(如"上海南京东路旗舰店") */
    @Excel(name = "门店名称")
    private String storeName;

    /** 门店ID(外键关联门店表，建议必填) */
    @Excel(name = "门店ID(外键关联门店表，建议必填)")
    private Long storeId;

    /** 当前门店商品售价(同步前的价格) */
    @Excel(name = "当前门店商品售价(同步前的价格)")
    private BigDecimal currentStorePrice;

    /** 目标同步售价(计划同步后的价格) */
    @Excel(name = "目标同步售价(计划同步后的价格)")
    private BigDecimal targetSyncPrice;

    /** 同步状态 */
    @Excel(name = "同步状态")
    private String syncStatus;

    /** 同步类型 */
    @Excel(name = "同步类型")
    private String syncType;

    /** 操作人(系统/用户名) */
    @Excel(name = "操作人(系统/用户名)")
    private String operator;

    /** 同步原因(如"全国统一调价") */
    @Excel(name = "同步原因")
    private String syncReason;

    /** 计划同步时间(空值表示立即执行) */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划同步时间(空值表示立即执行)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planSyncTime;

    /** 实际同步完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际同步完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualSyncTime;

    /** 同步失败错误信息 */
    @Excel(name = "同步失败错误信息")
    private String errorMessage;

    /** 是否系统自动同步(0:人工操作,1:系统策略) */
    @Excel(name = "是否系统自动同步(0:人工操作,1:系统策略)")
    private Integer syncBySystem;

    /** 是否覆盖门店特殊定价(0:不覆盖,1:强制覆盖) */
    @Excel(name = "是否覆盖门店特殊定价(0:不覆盖,1:强制覆盖)")
    private Integer isPriceOverride;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }

    public void setStoreName(String storeName)
    {
        this.storeName = storeName;
    }

    public String getStoreName()
    {
        return storeName;
    }

    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }

    public Long getStoreId()
    {
        return storeId;
    }

    public void setCurrentStorePrice(BigDecimal currentStorePrice)
    {
        this.currentStorePrice = currentStorePrice;
    }

    public BigDecimal getCurrentStorePrice()
    {
        return currentStorePrice;
    }

    public void setTargetSyncPrice(BigDecimal targetSyncPrice)
    {
        this.targetSyncPrice = targetSyncPrice;
    }

    public BigDecimal getTargetSyncPrice()
    {
        return targetSyncPrice;
    }

    public void setSyncStatus(String syncStatus)
    {
        this.syncStatus = syncStatus;
    }

    public String getSyncStatus()
    {
        return syncStatus;
    }

    public void setSyncType(String syncType)
    {
        this.syncType = syncType;
    }

    public String getSyncType()
    {
        return syncType;
    }

    public void setOperator(String operator)
    {
        this.operator = operator;
    }

    public String getOperator()
    {
        return operator;
    }

    public void setSyncReason(String syncReason)
    {
        this.syncReason = syncReason;
    }

    public String getSyncReason()
    {
        return syncReason;
    }

    public void setPlanSyncTime(Date planSyncTime)
    {
        this.planSyncTime = planSyncTime;
    }

    public Date getPlanSyncTime()
    {
        return planSyncTime;
    }

    public void setActualSyncTime(Date actualSyncTime)
    {
        this.actualSyncTime = actualSyncTime;
    }

    public Date getActualSyncTime()
    {
        return actualSyncTime;
    }

    public void setErrorMessage(String errorMessage)
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage()
    {
        return errorMessage;
    }

    public void setSyncBySystem(Integer syncBySystem)
    {
        this.syncBySystem = syncBySystem;
    }

    public Integer getSyncBySystem()
    {
        return syncBySystem;
    }

    public void setIsPriceOverride(Integer isPriceOverride)
    {
        this.isPriceOverride = isPriceOverride;
    }

    public Integer getIsPriceOverride()
    {
        return isPriceOverride;
    }

    public void setAddTime(Date addTime)
    {
        this.addTime = addTime;
    }

    public Date getAddTime()
    {
        return addTime;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productName", getProductName())
                .append("productId", getProductId())
                .append("storeName", getStoreName())
                .append("storeId", getStoreId())
                .append("currentStorePrice", getCurrentStorePrice())
                .append("targetSyncPrice", getTargetSyncPrice())
                .append("syncStatus", getSyncStatus())
                .append("syncType", getSyncType())
                .append("operator", getOperator())
                .append("syncReason", getSyncReason())
                .append("planSyncTime", getPlanSyncTime())
                .append("actualSyncTime", getActualSyncTime())
                .append("errorMessage", getErrorMessage())
                .append("syncBySystem", getSyncBySystem())
                .append("isPriceOverride", getIsPriceOverride())
                .append("addTime", getAddTime())
                .append("updateTime", getUpdateTime())
                .append("phone", getPhone())
                .toString();
    }
}
